import request from '@/utils/request'
export default{
    //放款
    commitApply(id){
        return request({
            url:`/admin/core/lend/makeLoan/${id}`,
            method:'GET'
        })
    },
    //查询标的的还款计划
    getLendReturns(lendId){
        return request({
            url:`/admin/core/lendReturn/list/${lendId}`,
            method:'GET'
        })
    },
    //查询标的的投资列表
    getLendItems(lendId){
        return request({
            url:`/admin/core/lendItem/lendItems/${lendId}`,
            method:'GET'
        })
    },
    //查询标的列表
    list(){
        return request({
            url:'/admin/core/lend/list',
            method:'GET'
        })
    },
    //查询标的详情
    getLendDetail(id){
        return request({
            url:`/admin/core/lend/lendDetail/${id}`,
            method:'GET'
        })
    }
}